package com.sanmu.sanmuapplicationContext;

import com.sanmu.bean.Car;
import com.sanmu.bean.Monster;
import org.dom4j.DocumentException;

public class SmuApplicationContextTest {
    public static void main(String[] args) throws DocumentException, ClassNotFoundException, InstantiationException, IllegalAccessException {
        SmuApplicationContext ioc =
                new SmuApplicationContext("beans.xml");
       Monster monster01 = (Monster) ioc.getBean("monster01");
        System.out.println(monster01);
        System.out.println(monster01.getMonsterId());
        System.out.println("OK");
        Car car =(Car) ioc.getBean("car");
        System.out.println(car);


    }
}
